package com.e3.template.tgf;

import com.e3.web.widget.client.BaseAction;
import com.e3.web.widget.client.MyActionFactory;

public class TGFStateMachine {
	
	private static TGFMessages MESSAGES = TGFMessages.INSTANCE;
	
	public static BaseAction QUERY_ACTION = MyActionFactory.createQueryAction();
	public static BaseAction NEW_ACTION = MyActionFactory.createNewAction();
	public static BaseAction MODIFY_ACTION = MyActionFactory.createModifyAction();
	public static BaseAction DELETE_ACTION = MyActionFactory.createDeleteAction();
	
	public static BaseAction NEW_CHILD_ACTION;
	public static BaseAction REFRESH_ACTION = new BaseAction(MESSAGES.action_refresh());

	public static void init(String localName){
		NEW_CHILD_ACTION = new BaseAction(MESSAGES.action_add_child(localName));
	}
}
